﻿@model IEnumerable<Fmis21_10.Models.Rating>

@{
    ViewBag.Title = "Index";
    Layout = "~/Views/Layout.cshtml";
}

<h2>Bang xep hang</h2>

@*<p>
    @Html.ActionLink("Create New", "Create")
</p>*@

@*@Html.DisplayNameFor(model => model.Tournament.TournamentsName)*@
<table class="flat-table flat-table-2">
    <tr>
        <th>
            @Html.DisplayNameFor(model => model.Team.TeamName)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.Point)
        </th>
        @*<th>
            @Html.DisplayNameFor(model => model.Tournament.TournamentsName)
        </th>*@
        <th>
            @Html.DisplayNameFor(model => model.Win)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.Lose)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.Draw)
        </th>
        <th></th>
    </tr>

@foreach (var item in Model) {
    <tr>
        <td>
            @Html.DisplayFor(modelItem => item.Team.TeamName)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Point)
        </td>
       @* <td>
            @Html.DisplayFor(modelItem => item.Tournament.TournamentsName)
        </td>*@
        <td>
            @Html.DisplayFor(modelItem => item.Win)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Lose)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Draw)
        </td>
       @* <td>
            @Html.ActionLink("Edit", "Edit", new { id=item.RatingId }) |
            @Html.ActionLink("Details", "Details", new { id=item.RatingId }) |
            @Html.ActionLink("Delete", "Delete", new { id=item.RatingId })
        </td>*@
    </tr>
}

</table>
